package io.renren.modules.generator.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.generator.dao.PlantDao;
import io.renren.modules.generator.entity.PlantEntity;
import io.renren.modules.generator.service.PlantService;


@Service("plantService")
public class PlantServiceImpl extends ServiceImpl<PlantDao, PlantEntity> implements PlantService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {

        Page<PlantEntity> page = this.selectPage(
                new Query<PlantEntity>(params).getPage(),
                new EntityWrapper<PlantEntity>()
        );

        return new PageUtils(page);
    }

}
